/**
 * @author Bernhard Denner
 * @author Maximilian Csuk
 * @author Konrad Paumann
 */
public interface TreeIterator<Node extends Better<? super Node>, Edge> {
	/**
	 * Checks if there exists a next Element
	 * Returns true if yes, false otherwise
	 */ 
	boolean hasNext();
	/**
	 * Inserts a node in the tree.
	 * Returns 	true if node has been successfully inserted,
	 * 			false otherwise
	 */
	boolean insert(Edge edge, Node node);
}
